<%@ page language="java" pageEncoding="utf-8" %>

<html>
<head>

</head>
<body>
<h2>Hello World!</h2>
<a href="Test.jsp">跳转</a>
<div>
    <form method="get" action="httpServletDemo">
        <button type="submit" value="get">点击使用get方式提交</button>
    </form>
</div>
<div>
    <form method="post" action="httpServletDemo">
        <button type="submit" value="get">点击使用post方式提交</button>
    </form>
</div>
<div>
    <form method="get" action="httpServletservice">
        <button type="submit" value="get">点击使用get方式提交service接收</button>
    </form>
</div>
<div>
    <form method="post" action="httpServletservice">
        <button type="submit" value="get">点击使用post方式提交service接收</button>
    </form>
</div>
<div>
    <form method="post" action="genericServletDemo">
        <button type="submit" value="get">点击使用post方式提交GenericServlet的service接收</button>
    </form>
</div>

<div>
    <form method="post" action="/annotationDemo">
        <button type="submit" value="get">点击使用注解的方式提交</button>
    </form>
    <a href="/annotationDemo">点击使用注解方式访问</a>
</div>

<div>
    <form method="post" action="/getRequestContent">
        <button type="submit" value="post">点击获取请求行的内容</button>
    </form>
</div>
<div>
    <form method="post" action="/getRequestHeader">
        <button type="submit" value="post">点击获取请求头的内容</button>
    </form>
</div>

<div>
    <form method="post" action="/getParameter">
        <input type="text" name="username"/>
        <input type="password" name="password"/>
        <input type="radio" name="sex" value="男"/>男
        <input type="radio" name="sex" value="女"/>女
        <input type="checkbox" name="hobbis" value="eat"/>吃饭
        <input type="checkbox" name="hobbis" value="run"/>跑步
        <input type="submit" value="提交">
    </form>
</div>
<div>
    <form action="/encoding" method="post">
        <button>点击查看编码格式</button>
    </form>
</div>
<div>
    <form action="/fileUpload" method="post" enctype="multipart/form-data">
        <input type="file" multiple="multiple" name="fileName">
        <input type="submit" value="提交"/>
    </form>
</div>
<div>
    <form action="/fileUploads" method="post" enctype="multipart/form-data">
        <input type="file" multiple="multiple" name="file1">
        <input type="file" multiple="multiple" name="file2">
        <input type="file" multiple="multiple" name="file3">
        <input type="file" multiple="multiple" name="file4">
        <input type="submit" value="提交"/>
    </form>
</div>
<div>
    <form action="/servletConfigDemo01" method="post">
        <button>点击测试ServletConfig---XML</button>
    </form>
</div>
<div>
    <form action="/servletConfigDemo02" method="post">
        <button>点击测试ServletConfig---注解</button>
    </form>
</div>

<div>
    <form action="/responseDemo01" method="post">
        <button>点击测试response</button>
    </form>
</div>
<div>
    <form action="/lookPicture" method="post">
        <button>点击看图</button>
    </form>
</div>
<div>
    <form action="/downloadPicture" method="post">
        <button>点击下载图</button>
    </form>
</div>

<div>
    <form action="/servletContext01" method="post">
        <button>点击测试ServletContext</button>
    </form>
</div>
<div>
    <form action="/servletContext02" method="post">
        <button>点击测试ServletContext数据存取</button>
    </form>
</div>

<div>
    <form action="/servletContext03" method="post">
        <button>点击获取上下文路径</button>
    </form>
</div>

<div>
    <a href="sendredirect01">点击测试sendRedirect</a><br/>
    <a href="forward">点击测试Forward</a><br/>
    <a href="include">点击测试include</a><br/>
</div>
<div>
    <a href="/cookie">点击测试cookie</a><br/>
</div>

<div>
    <form action="/sessionDemo" method="post">
        <input type="text" name="username"/>
        <input type="password" name="password"/>
        <input type="submit" value="提交"></input>
    </form>
</div>

<div>
    <form action="/reurl" method="post">
        <input type="text" name="username"/>
        <input type="password" name="password"/>
        <input type="submit" value="提交"/>
    </form>
</div>
</body>
</html>
